@extends('layouts.admin')
@section('content')

    <!--Side menu and right menu -->

    <!-- main content -->
    <section class="content home">
        <div class="container-fluid">
            <div class="block-header">
                <h2>用户管理</h2>
                <ol class="breadcrumb">
                    <li><a href="/admin">首页</a></li>
                    <li><a href="/admin/user">用户管理</a></li>
                    <li><a href="/admin/admin">管理员管理</a></li>
                    <li class="active">添加管理员</li>
                </ol>
            </div>

            <div class="row clearfix">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="card">
                        <div class="header">
                            <h2> 添加管理员 </h2>
                            <ul class="header-dropdown m-r--5">
                                <a href="{{ url()->previous() }}" title="返回上一页"> <i
                                            class="material-icons">arrow_back</i>
                                </a>

                                </li>
                            </ul>
                        </div>
                        <div class="body">


                            <form method="POST" action="">

                                {{ csrf_field() }}
                                <label for="apage_title">管理员名称</label>
                                <div class="form-group">
                                    <div class="form-line">
                                        <input type="text" id="name" class="form-control" name="name" maxlength="150" value="{{request()->input('name')}}">
                                    </div>
                                    @if ($errors->has('name'))
                                        <label id="name-error" class="error" for="apage_title">{{ $errors->first('name') }}</label>
                                    @endif

                                </div>
                                <label for="apage_title">邮箱*</label>
                                <div class="form-group">
                                    <div class="form-line">
                                        <input type="text" id="email" class="form-control" name="email" maxlength="150" value="{{request()->input('email')}}">
                                    </div>
                                    @if ($errors->has('email'))
                                        <label id="name-error" class="error" for="apage_title">{{ $errors->first('email') }}</label>
                                    @endif

                                </div>
                                <label for="apage_title">密码</label>
                                <div class="form-group">
                                    <div class="form-line">
                                        <input type="text" id="password" class="form-control" name="password" maxlength="150" value="{{request()->input('password')}}">
                                    </div>
                                    @if ($errors->has('password'))
                                        <label id="name-error" class="error" for="apage_title">{{ $errors->first('password') }}</label>
                                    @endif

                                </div>


                                <div class="hidden-print">
                                    <div class="pull-right">

                                        <button type="reset" class="btn  btn-raised bg-grey waves-effect">重置内容</button>
                                        <button type="submit" class="btn  btn-raised btn-success waves-effect">添加管理员
                                        </button>

                                    </div>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </section>

@endsection
@push('header-css')
<link href="{{ asset('assets/plugins/redactor2/redactor.css') }}" rel="stylesheet">
@endpush

@push('scripts')
<script type="text/javascript" charset="utf-8" src="{{ asset('assets/plugins/redactor2/redactor.min.js')}}"></script>
@endpush